package xyz.scootaloo.mono.admin.web

import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import xyz.scootaloo.mono.admin.dto.SexOptionVO
import xyz.scootaloo.mono.admin.dto.StatusOptionVO
import xyz.scootaloo.mono.base.lang.R

/**
 * @author flutterdash@qq.com
 * @since 2021/9/24 13:01
 */
@RestController
@RequestMapping("/admin/option")
class OptionResourceController {

    @GetMapping("/sex")
    fun sexOption(): R<List<SexOptionVO>> = R.of(SexOptionVO.list())

    @GetMapping("/status")
    fun statusOption(): R<List<StatusOptionVO>> = R.of(StatusOptionVO.list())

}
